package com.heima.user.controller.v1;

import com.heima.apis.user.UserRelationControllerApi;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.UserRelationDto;
import com.heima.user.service.ApUserFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/api/v1/follow")
public class UserRelationController implements UserRelationControllerApi {

    @Autowired
    ApUserFollowService apUserFollowService;
   @PostMapping("/follow")
    @Override
    public ResponseResult follow(@RequestBody UserRelationDto dto) {

        return apUserFollowService.follow(dto);
    }
}
